package com.ebid.templates.twenty;

import com.ebid.templates.utils.ParameterUtils;

import java.text.MessageFormat;

public class QualiInqueryAppFile {
    private static String qualiInqueryAppFile="<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n"+
            "<qualiInqueryAppFile> \n" +
            "    <tenderProjectCode>{0}</tenderProjectCode>\n" +
            "    <bidSectionCodes>{1}</bidSectionCodes>\n" +
            "    <unifiedDealCodes>{2}</unifiedDealCodes>\n" +
            "    <applicationName>{3}</applicationName>\n" +
            "    <applicationCode>{4}</applicationCode>\n" +
            "    <qualificationElement>{5}</qualificationElement>\n" +
            "    <bidManager>{6}</bidManager>\n" +
            "    <applySubmitTime>{7}</applySubmitTime>\n" +
            "    <attachmentSetCode>{8}</attachmentSetCode>\n" +
            "    <platFormCode>{9}</platFormCode>\n" +
            "    <pubServicePlatCode>{10}</pubServicePlatCode>\n" +
            "    <dataTimeStamp>{11}</dataTimeStamp>\n" +
            "</qualiInqueryAppFile>";

    public static void setQualiInqueryAppFile(String qualiInqueryAppFile,String s0,String s1,String s2,String s3,String s4,String s5,String s6,String s7,String s8,String s9,String s10
            ,String s11) {
        QualiInqueryAppFile.qualiInqueryAppFile = MessageFormat.format(qualiInqueryAppFile,s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,
                s11);
    }

    public static void setQualiInqueryAppFile(){

        setQualiInqueryAppFile(qualiInqueryAppFile, ParameterUtils.get("tenderProjectCode"),
                                                    ParameterUtils.get("bidSectionCodes"),
                                                    ParameterUtils.get("unifiedDealCodes"),
                                                    ParameterUtils.get("applicationName"),
                                                    ParameterUtils.get("applicationCode"),
                                                    ParameterUtils.get("qualificationElement"),
                                                    ParameterUtils.get("bidManager"),
                                                    ParameterUtils.get("applySubmitTime"),
                                                    ParameterUtils.get("attachmentSetCode"),
                                                    ParameterUtils.get("platFormCode"),
                                                    ParameterUtils.get("pubServicePlatCode"),
                                                    ParameterUtils.get("dataTimeStamp")
                );
    }
//    public static void main(String[] args) {
//        setQualiInqueryAppFile();
//        System.out.println(qualiInqueryAppFile);
//    }
}
